//
//  ChartView.h
//  柱状图Demo
//
//  Created by mac on 16/6/5.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface ChartView : UIView

typedef enum : NSUInteger {
    CSYieldTypeWeek = 0,    //周收益
    CSYieldTypeMonth = 1,   //月收益
    CSYieldTypeYear = 2,    //年收益
} CSYieldType;  //收益类型

typedef enum : NSUInteger {
    CSTimePointJanuary  = 0,         //一月份
    CSTimePointFebruary,
    CSTimePointMarch,
    CSTimePointApril,
    CSTimePointMay,
    CSTimePointJun,             //.
    CSTimePointJuly,            //.
    CSTimePointAugust,
    CSTimePointSeptember,
    CSTimePointOctober,
    CSTimePointNovember,
    CSTimePointDecember,        //十二月份
    CSTimePointThisWeek,    //本周
    CSTimePointLastWeek,        //上周
} CSTimePoint;

@property (nonatomic, assign) CSYieldType yieldType;
@property (nonatomic, assign) CSTimePoint timePoint;
@property (nonatomic, strong) NSArray *yields;
@property (nonatomic, strong) NSArray *dayPoints;


// 刷新图表
- (void)refreshChartWithYields:(NSArray *)yields dayPoints:(NSArray *)dayPoints;

@end
